/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.api.runtime.metadata;

import com.farmcode.api.runtime.metadata.tables.AttributeCollection;
import com.farmcode.api.runtime.metadata.tables.ConstraintCollection;
import com.farmcode.api.runtime.metadata.tables.ReferenceCollection;

/**
 *
 * @author oiprado
 */
public class TableSpc extends ObjectInfoSpc implements Table {

  private AttributeCollection attributeChilds = new AttributeCollection();
  private ReferenceCollection referenceChilds = new ReferenceCollection();
  private ConstraintCollection constraintChilds = new ConstraintCollection();

    public TableSpc() {
    }

    public TableSpc(String name, String type, boolean used, String className) {
        super(name, type, used, className);
    }
  
  @Override
  public AttributeCollection getAttributeChilds() {
    return attributeChilds;
  }

  @Override
  public void setAttributeChilds(AttributeCollection attributeChilds) {
    this.attributeChilds = attributeChilds;
  }

  @Override
  public ReferenceCollection getReferenceChilds() {
    return referenceChilds;
  }

  @Override
  public void setReferenceChilds(ReferenceCollection referenceChilds) {
    this.referenceChilds = referenceChilds;
  }

  @Override
  public ConstraintCollection getConstraintChilds() {
    return constraintChilds;
  }

  @Override
  public void setConstraintChilds(ConstraintCollection constraintChilds) {
    this.constraintChilds = constraintChilds;
  }
  
}
